package cn.kgm.annotation.test2;

import java.lang.annotation.*;

/**
 * @Author: Kappi
 * @Date: 2022-7-25 16:47
 * @ClassName: MyAnnotation
 * @Description: cn.kgm.annotation.test2 MyAnnotation
 * @Version 1.8
 */
// 说明该注解可以被继承
@Inherited
@Documented
@Target({ElementType.TYPE, ElementType.METHOD})
// 只在源码中运行
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
    String value() default "hello";

    String message() default "aaa";
}
